package com.ccz.demo.design.state;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Test2PassClient {

    public static void main(String[] args) {
        String id = "001";
        ActivityInfo activityInfo = ActivityService.init(id, ActivityStatus.EDIT);
        StatusHandler handler = new StatusHandler();
        Result result = handler.checkPass(activityInfo.getActivityId(), activityInfo.getStatus());
        log.info(JSON.toJSONString(result));
        Result result1 = handler.activityFinish(activityInfo.getActivityId(), activityInfo.getStatus());
        log.info(JSON.toJSONString(result1));
    }

}
